home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Clock / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-12-16  |  3.3 KB  |  96 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. //-------------------------------------------------------------------------------------
  14. // Uncomment the following three lines, and define them appropriately!!
  15. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  16. // to be 1.  Otherwise define it to be 0.
  17. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  18. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  19. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  20. // define it to be zero.  Note that if your part is scriptable is must support
  21. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  22. #define FW_SUPPORTS_EMBEDDING     0
  23. #define FW_SUPPORTS_EXTENSIONS     0
  24. #define FW_SUPPORTS_SCRIPTING     0
  25. #define FW_SUPPORTS_LINKING     0
  26.  
  27. //-------------------------------------------------------------------------------------
  28. // Icons ID
  29. #define kViewAsIconID                 128
  30. #define kAboutIconID                130
  31.  
  32. //-------------------------------------------------------------------------------------
  33. // Menus
  34. #define kMenuBar                    1024
  35.  
  36. // Menu Commands
  37. #define cClockType                     FW_kFirstUserCommandID
  38. #define cClockSoundsTick            cClockType + 1
  39. #define cClockSoundsChime            cClockSoundsTick + 1
  40. #define cClockSettings                cClockSoundsChime + 1
  41. #define cClockUseContainerColor        cClockSettings + 1
  42.  
  43. //-------------------------------------------------------------------------------------
  44. // About
  45. #define kAbout                        1024
  46.  
  47. //-------------------------------------------------------------------------------------
  48. // Document Window
  49. #define kDocumentWindowID            1024
  50.  
  51. //-------------------------------------------------------------------------------------
  52. // Part Info 
  53. #define kPartInfoID                    1024
  54.  
  55. //-------------------------------------------------------------------------------------
  56. // Strings
  57. #define kClockFaceStrings             1002
  58. #define kClockDigitalWidthString     1
  59. #define kClockOpenDocString         2
  60.  
  61. #define kClockStrings                1003
  62. #define kOffsetErrorString            1
  63. #define kClockSettingsTitleString    2
  64.  
  65. //-------------------------------------------------------------------------------------
  66. // Sounds
  67. #define kClockChime                 1000
  68. #define kClockTick                     1001
  69.  
  70. //-------------------------------------------------------------------------------------
  71. // Presentation
  72. #define kAnalogPresentation            "Apple:Presentation:ODFClock:Analog"
  73. #define kDigitalPresentation        "Apple:Presentation:ODFClock:Digital"
  74. #define kClockSettingsPresentation    "Apple:Presentation:ODFClock:Dialog:Settings"
  75.  
  76. //-------------------------------------------------------------------------------------
  77. // Views
  78. #define kAnalogClockView            1200
  79. #define kAnalogClockViewRoot        1201
  80. #define kDigitalClockView            1210
  81. #define kDigitalClockViewRoot        1211
  82.  
  83. #define kClockViewID        1
  84. #define kGrowBoxID             2
  85.  
  86. //-------------------------------------------------------------------------------------
  87. // Dialogs
  88. #define kClockSettingsDialog        1220
  89. #define kTimeOffsetViewID    1
  90. #define kFaceStringViewID    3
  91. #define kClockOKButtonID    5
  92. #define kCancelButtonID        7
  93.  
  94. #endif
  95.  
  96.